package hospital.hospitalmanage.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

public interface ApiService {

    String getHoscode();

    String getSignKey();

    JSONObject getHospital();
    @Transactional
    boolean saveHospital(String data);

    Map<String, Object> findDepartment(int pageNum, int pageSize);
    @Transactional
    boolean saveDepartment(String data);
    @Transactional
    boolean removeDepartment(String depcode);

    Map<String, Object> findSchedule(int pageNum, int pageSize);
    @Transactional
    boolean saveSchedule(MultipartFile file);
    public boolean saveSchedule(String data);
    @Transactional
    boolean removeSchedule(String hosScheduleId);
    @Transactional
    void  saveBatchHospital() throws IOException;
}
